Introducing .NET MAUI by 2023
Author:2023
Language: eng
Format: epub
Chapter 8 advanCed UI ConCepts
Possible Ways of Achieving Your Goal
There are several ways you can go about adding in this piece of
functionality. Some are better suited to different scenarios and some
simply come down to a personal preference. I encourage you to
understand your goal before you embark on this journey of working out
which option will best suit your need. If you only wish to report a message
to the user or capture a choice or even a single piece of input, then you can
utilize some underlying functionality provided by .NET MAUI. The Page
class provides the ability to do each of the three items discussed; it doesnât
solve your needs, but it really does have value in many applications. The
Microsoft documentation provides a good set of reference examples on
how to use these options at https://learn.microsoft.com/dotnet/maui/
user-interface/pop-ups.
Letâs discuss some of these options that do solve your needs and
then make a decision on which you feel is the best candidate for your
application.
Showing a Modal Page
So far in this book you have only considered how Shell offers the
ability to navigate between ContentPages. This is the default and most
common scenario. There can be times when you wish to show a page
that is blocking and will require the user to engage with it to return to the
previous page. This type of page or display is referred to as modal. The
scenario of showing something to the user and requiring them to engage
with it could be a perfect scenario.
In order to enable this functionality in .NET MAUI, you need to set the
Shell.PresentationMode property on the ContentPage that you wish to
display. For example,
222
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
NET | C & C++ Windows Programming |
SQL Server | VBA |
Visual Basic |
Deep Learning with Python by François Chollet(12526)
Hello! Python by Anthony Briggs(9871)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9761)
The Mikado Method by Ola Ellnestam Daniel Brolund(9752)
Dependency Injection in .NET by Mark Seemann(9297)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8262)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7745)
Grails in Action by Glen Smith Peter Ledbrook(7671)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7521)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(6759)
Microservices with Go by Alexander Shuiskov(6526)
Practical Design Patterns for Java Developers by Miroslav Wengner(6422)
Test Automation Engineering Handbook by Manikandan Sambamurthy(6401)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6383)
Angular Projects - Third Edition by Aristeidis Bampakos(5785)
The Art of Crafting User Stories by The Art of Crafting User Stories(5313)
NetSuite for Consultants - Second Edition by Peter Ries(5254)
Demystifying Cryptography with OpenSSL 3.0 by Alexei Khlebnikov(5075)
Kotlin in Action by Dmitry Jemerov(5023)
